package com.unit_10;
public class Demo04{
    public static void main(String args[]){
        try{
            throw new Exception("demo exception");
        }catch(Exception e){
            System.out.println(e.getMessage());
        }finally{
            System.out.println("Program finished.");
        }
    }
}
